#pragma once
#include <atomic>
#include <vector>
#include "FanucDefine.h"

class SocketObj;

class FanucCollector
{
private:
    /* data */
public:
    FanucCollector(/* args */);
    ~FanucCollector();

    void init(const FANUC::fanucConnectInfo&);
    void start();
    void stop();

private:
    bool connectToHost();
    void startCollect();
    void packRequestData();

private:
    FANUC::fanucConnectInfo _conInfo;
    std::atomic<bool> mQuit;
    SocketObj *_client;
    std::vector<unsigned char> requestArr;
};


